<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>SurfaceChart.setData</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="SurfaceChart.htm">SurfaceChart</a>.<wbr>setData</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setData(double[] xData, double[] yData, double[] zData [, double[] wData ])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the data for the surface chart.<br><br>
ChartDirector supports both gridded and scattered data. If the data points are on a rectangular grid will no missing points, they will be handled as gridded data. Otherwise, they will be handled as scattered data.<br><br>
For gridded data, you may provide the x and y values of the grid, and the z values of the data points. For a 10 x 15 grid, that means the x data series should have 10 values, the y data series should have 15 values, and the z data series should have 150 values. The x and y data series should be strictly monotonic (either strictly increasing or strictly decreasing).<br><br>
For both gridded and scattered data, you may also provide the (x, y, z) values of the data points. For example, for 150 data points, the x, y and z data series should each have 150 values. ChartDirector will automatically detect if the data points are gridded or scattered.<br><br>
By default, the surface color is based on the z values. ChartDirector also supports using an optional w data series to determine the surface color. For example, the (x, y, z) may be the 3D coordinates of a geographic area, and w may be the temperature. In this case, the (x, y, z) determines the surface shape while w determines the surface color.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>xData</td><td>(Mandatory)</td><td>An array of numbers representing the x data series.</td></tr><tr><td>yData</td><td>(Mandatory)</td><td>An array of numbers representing the y data series.</td></tr><tr><td>zData</td><td>(Mandatory)</td><td>An array of numbers representing the z data series.</td></tr><tr><td>wData</td><td>[Empty_Array]</td><td>An array of numbers containing an extra data series for determining the colors on the surface.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
